package com.example.file.service.impl;

import com.example.file.service.FileService;
import com.example.service.util.service.FileUploadUtils;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

/**
 * @Author juzipi
 * @Date 2021/7/20 14:20
 * @Info
 */
@Service
public class FileServiceImpl implements FileService {



    @Override
    public String uploadFile(MultipartFile file) {
        String filename = FileUploadUtils.extractFilename(file);
        return FileUploadUtils.uploadCloud(file, filename);
    }


}
